<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich" xml:lang="en">
<head>
<title>课件管理</title>
<meta http-equiv="keywords" content="enter,your,keywords,here" />
<meta http-equiv="description"
	content="A short description of this page." />
<link href="#{facesContext.externalContext.requestContextPath}/css/public.css" rel="stylesheet" type="text/css"
	media="screen" />
<link href="#{facesContext.externalContext.requestContextPath}/css/main.css" rel="stylesheet" type="text/css"
	media="screen" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<!-- rich:message style-->
<style type="text/css">
	.rich-message-label{
		color:red;
	}
</style>
</head>
<body style="background-color: #ffffff">
<h:form>
	<div id="right">
	<div id="msgid" class="error pt10p bcf c0 tal" style="display:">
		<a4j:outputPanel  id="msgPanel">
		<center>
			<h:outputText styleClass="cff" value="#{TrainBB.msg}" />
		</center>
	</a4j:outputPanel>
	</div>
	<div class="tablelist">
	<table width="100%" border="1" cellpadding="0" cellspacing="0"
		bordercolor="#c3c3c3" style="border-collapse: collapse">
		<tr>
			<td>OFFICE<h:selectOneMenu class="style_input" value="#{TrainBB.office_code}">
				<f:selectItem />
	 			<f:selectItems value="#{otherParamBB.selectItems_officeInfId}" />
			</h:selectOneMenu></td>
			<td>技能组<h:selectOneMenu class="style_input"  value="#{TrainBB.tp_userkind}">
				<f:selectItem />
	 			<f:selectItems value="#{paramBB.selectItems_param}" />
			</h:selectOneMenu></td>
		</tr>
		<tr>
			<td>课件标题<h:inputText class="style_input" value="#{TrainBB.tp_keyWord}" /></td>
			<td>课件状态 <h:selectOneMenu class="style_input"  value="#{TrainBB.tp_state}">
				<f:selectItem />
				<f:selectItems  value="#{paramBB.selectItem['tp_courseware_state']}"  />
			</h:selectOneMenu>
			</td>
			<td><h:commandButton class="buttonbg" value="查询" action="#{TrainBB.queryCoursewaresByState}" reRender="subjecttable,msgPanel"/></td>
		</tr>
	</table>
	</div>
	<div class="tablelist2"><rich:dataTable rowClasses=",yellow" width="100%" id="subjecttable" value="#{TrainBB.coursewares}" var="table" >
		<a4j:keepAlive beanName="TrainBB"/>
		<f:facet name="header">
			<rich:columnGroup>
				<rich:column>
					<h:outputText value="选择" />
				</rich:column>
				<rich:column>
					<h:outputText value="office" />
				</rich:column>
				<rich:column>
					<h:outputText value="课件标题" />
				</rich:column>
				<rich:column>
					<h:outputText value="技能组" />
				</rich:column>
				<rich:column>
					<h:outputText value="课件状态" />
				</rich:column>
				<rich:column>
					<h:outputText value="操作人" />
				</rich:column>
				<rich:column>
					<h:outputText value="操作时间" />
				</rich:column>
				<rich:column>
					<h:outputText value="添加状态" />
				</rich:column>
			</rich:columnGroup>
		</f:facet>
		<rich:columnGroup>
			<rich:column>
				<h:selectBooleanCheckbox value="#{table.select}" />
			</rich:column>
			<rich:column>
				<h:outputText value="#{table.office_code_value}" />
			</rich:column>
			<rich:column>
				<h:outputText value="#{table.tp_cwtitle}" />
			</rich:column>
			<rich:column>
				<h:outputText value="#{table.tp_userkind_value}" />
			</rich:column>
			<rich:column>
				<h:outputText value="#{table.tp_state_value}" />
			</rich:column>
			<rich:column>
				<h:outputText value="#{table.tp_op}" />
			</rich:column>
			<rich:column>
				<h:outputText value="#{table.tp_op_date}" >
					<f:convertDateTime pattern="yyyy-MM-dd" timeZone="GMT+8" />
				</h:outputText>
			</rich:column>
			<rich:column>
				<h:outputText style="color:#ff0000;" value="#{table.related}" />
			</rich:column>
		</rich:columnGroup>
	</rich:dataTable></div>
	<div class="listbut"><a4j:commandButton styleClass="buttonbg2"
		value="添加培训课件" action="#{TrainBB.addTrainAndCoursewares}" reRender="subjecttable,msgPanel" /> 
		<a4j:commandButton styleClass="buttonbg2"
		value="删除培训课件" action="#{TrainBB.deleteTrainAndCoursewares}" reRender="subjecttable,msgPanel" /> 
		<a4j:commandButton styleClass="buttonbg2"
		value="查看培训课件" action="#{TrainBB.queryTrainCoursewares}" reRender="subjecttable,msgPanel" /> 
		<h:commandButton styleClass="buttonbg"
		value="返回" action="#{TrainBB.toBack}" reRender="msgPanel" immediate="true"/></div>
	</div>
</h:form>
</body>
</html>

